#include <Drivers/block/nand/nand_drv.h> //added by yangbin
static NandDeviceEntry nand_boot_dev_desc[3]={
	{
		"/dev/nandboot",
		1,
		NandNormal
	},
	{
		"/dev/logo.avi",
		0x4*0x100000,
		NandNormal
	},
	{
		"/dev/nandcode2",
		0x4*0x100000,
		NandNormal
	}
	
};
static NandDeviceEntry nand_block_dev_desc[2]={
	{
		"/dev/nandsys",
		0x4D8000,
		NandNormal
	},
	{
		"/dev/disk/nanda",
		1,
		NandNormal
	},
};
void nand_start_boot()
{
	int nand_fd;
	int tag=0;
	int req,status;

	nand_fd = open(NAND_DEV_NAME,O_RDONLY);
	if(nand_fd<0)
		return;
	req = BLKIO_NAND_INITIAL;
	status = ioctl(nand_fd,req,(void *)&nand_boot_dev_desc);
	close(nand_fd);
	if(status!=AVFS_SUCCESSFUL)
	{
		return;
	}
}
void nand_start_block()
{
	int nand_fd;
	int tag=0;
	int req,status;

	nand_fd = open(NAND_DEV_NAME,O_RDONLY);
	if(nand_fd<0)
		return;
	req = BLKIO_NAND_INITIAL_BLOCK;
	status = ioctl(nand_fd,req,(void *)&nand_block_dev_desc);
	close(nand_fd);
	if(status!=AVFS_SUCCESSFUL)
	{
		return;
	}
}

//void AVBurnerInitDev()
//{
//	nand_start();
//}